package cn.dkk.structure_design.decorator;

import cn.dkk.structure_design.decorator.pojo.FastFood;

/**
 * @author dkk
 * @date 2022/7/10
 * @desc 装饰者类
 */
public abstract class Decorator extends FastFood {

    private FastFood fastFood;

    public Decorator(String desc, double price,FastFood fastFood) {
        super(desc, price);
        this.fastFood=fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
}
